package cn.bass.marketing.convertor;

import cn.bass.marketing.common.vo.resp.MarketingPrizeRespVO;
import cn.bass.marketing.entity.MarketingPrizeDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * {@author}: LiuWei
 * {@version}: 1.0
 * {@since}: 2024-08-15
 * {@link}: cn.bass.marketing.common.constant.RulesConstant
 * 描述：权重规则枚举
 */
@Mapper
public interface MarketingPrizeConvertor {
    MarketingPrizeConvertor INSTANCE = Mappers.getMapper(MarketingPrizeConvertor.class);

    MarketingPrizeDO respVO2do(MarketingPrizeRespVO entity);

    MarketingPrizeRespVO do2respVO(MarketingPrizeDO dto);

    List<MarketingPrizeDO> respVO2do(List<MarketingPrizeRespVO> prizes);

    List<MarketingPrizeRespVO> do2respVO(List<MarketingPrizeDO> DTOs);
}
